cmake_minimum_required(VERSION 3.15)

project(test_call_makefile C CXX)

set(AA 1)
set(BB ARM64)

add_custom_target(
    call_makefile ALL
    COMMAND AA=${AA} make BB=${BB}
    WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/sub
)